<div class="addLog">
  <% remote_form_for @reship,
    :update => "reships_replace",
    :url => valleyers_show_transit_cargos_show_reships_url,
    :method => :post,
    :before => "copy_value_from_fckeditor_to('reship__content_editor','reship__content_editor');",
    :html => {
    :id => "new_reship_form"
  } do |f| %>
    <div class="title">
      <p>标题&nbsp;:&nbsp;</p><%= f.text_field :title %>
      <p>来源&nbsp;:&nbsp;</p><%= f.text_field :source, :class => "origin" %>
      <p>分类&nbsp;:&nbsp;</p>
      <%= text_field_with_auto_complete("document_type",
        :name,{
        }, {
          :url => auto_complete_document_types_url,
          :with => "'&name=' + $F('document_type_name') ",
          :method =>:get,
          :skip_style => true
        }) %><%#= text_field_tag :documet_name, nil, :class => "classify" %>
      <!-- link_to "读取草稿" -->
    </div>
    <%= fckeditor_textarea("reship", "content", :toolbarSet => 'Simple', :width => '650px', :height => '600px') %>
    <%= f.hidden_field :author_id %>
    <div class="button">
      <%= link_to_function image_tag("valleyer/issue.jpg"), "$('new_reship_form').onsubmit()" %>
      <%= link_to_remote image_tag("valleyer/cancel.jpg"),
        :update => "reships_replace",
        :url => valleyers_show_transit_cargos_url(:valleyer_id => current_valleyer.id),
        :method => :get
      %>
    </div>
  <% end %>
</div>